package com.jung.images.dao.Impl;

import com.jung.common.HibernateEntityManagerImpl;
import com.jung.exception.SkeletonSystemException;
import com.jung.images.dao.ImagesDao;
import com.jung.images.model.Images;

public class ImagesDaoImpl extends HibernateEntityManagerImpl<Images> implements ImagesDao {

	public boolean addImages(Images images) {
		try {
			super.save(images);
		} catch (SkeletonSystemException e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}

	public boolean deleteImages(Images images) {
		try {
			super.remove(images);
		} catch (SkeletonSystemException e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}

	public boolean updateImages(Images images) {
		try {
			super.update(images);
		} catch (SkeletonSystemException e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}

}
